package com.BaoHua.demo.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.BaoHua.demo.webservice.translator.ArrayOfString;
import com.BaoHua.demo.webservice.translator.TranslatorWebServiceSoap;

@RestController
public class TransController {

	@Autowired
	private TranslatorWebServiceSoap trans;
	
	/**
	 * 
	* @Title: get_en_cn_two_way_translator  
	* @param @param word
	* @param @return    参数  
	* @return ArrayOfString    返回类型  
	* @throws
	 */
	@PostMapping("/trans/get_en_cn_two_way_translator")
	public ArrayOfString get_en_cn_two_way_translator(String word) {
		return trans.getEnCnTwoWayTranslator(word);
	}
}
